package ch8.ex1;

public class Person {

	static Integer count;
	String name;
	String surname;
	Integer age;

	static void giveCount() {
		System.out.println("Population is " + count);

	}

	// metoda konstrukcyjna
	Person(String name, String surname, Integer age) {
		this.name = name;
		this.surname = surname;
		this.age = age;
	}

	public String introduceYou() {
		return "My name is " + name + " " + surname + " and I am " + age
				+ " yers old";
	}

}
